package com.hicorp.segment.pojo.po;

import com.alibaba.fastjson.JSONObject;
import com.hicorp.segment.pojo.BaseNoDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class OperationRecord extends BaseNoDO {
    private  String userName;
    private  String ip;
    private String operationName;
    private String requestDetail;
    private String userMethod;
    private JSONObject params;


    public OperationRecord(String currentUserName, String ip, String operationName, String request_detail,String userMethod,JSONObject params,String createUser, Date createTime) {
        this.userName=currentUserName;
        this.ip=ip;
        this.operationName=operationName;
        this.requestDetail=request_detail;
        this.userMethod=userMethod;
        this.params=params;
        this.setCreateUser(createUser);
        this.setCreateGmt(createTime);
    }
}
